export default [{
    path: '/login',
    name: "login",
    component: () => import('@/views/login.vue'),
    // 不在tab导航中显示
    // 因为调整了逻辑，这里不配置这个也不会在tab导航中显示
    hidden: true,
    meta: {
        noAuth: true
    }
},
{
    path: '/',
    name: "main",
    // 默认跳转首页
    redirect: '/index',
    component: () => import('@/layout/main/Home.vue'),
    children: [
        {
            // 刷新页面
            name: "Refresh",
            path: '/Refresh',
            // 隐藏不在tab标签中显示
            hidden: true,
            component: () => import('@/views/Refresh.vue')
        },
        {
            path: 'index',
            name: "index",
            meta: {
                cache: true,
                title: "首页"
            },
            component: () => import('@/views/welcome/Home.vue')
        },
        {
            path: 'HouseBuildingsGrid',
            name: "HouseBuildingsGrid",
            meta: {
                cache: true
            },
            component: () => import('@/views/house/buildings/Grid.vue')
        },
        {
            path: 'HouseRoomHome',
            name: "HouseRoomHome",
            meta: {
                cache: true
            },
            component: () => import('@/views/house/room/Home.vue')
        },
        {
            path: 'RentUserGrid',
            name: "RentUserGrid",
            meta: {
                cache: true
            },
            component: () => import('@/views/rent/user/Grid.vue')
        },
        {
            path: 'RentContractGrid',
            name: "RentContractGrid",
            meta: {
                cache: true
            },
            component: () => import('@/views/rent/contract/Grid.vue')
        }
    ]
}]